package com.zzyl.mapper;


import com.github.pagehelper.Page;
import com.zzyl.entity.Reservation;
import com.zzyl.entity.SurplusTime;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface CustomerReservationMapper {
    Integer getByUserId(Long userId,LocalDateTime beginOfDay,LocalDateTime endOfDay);

    List<SurplusTime> getByUserIdTime(LocalDateTime startOfDay, LocalDateTime endOfDay);

    void add(Reservation reservation);

    Page<Reservation> page(Long userId, Integer status);

    void cancel(Long id, Long userId);

    void timedTask();
}
